package com.bestcem.xm.user.grpc.service.param;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 用户组节点信息
 *
 * @author panyun <yun.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/2/21 11:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class GroupNode implements Serializable {
    /**
     *  组id
     */
    private String id;

    /**
     *  组序列号
     */
    private Integer seq;

    /**
     *  组编码
     */
    private String code;

    /**
     *  组名
     */
    private String name;

    /**
     *  层级id
     */
    private String groupLevelId;

    /**
     *  子层级结构
     */
    private List<GroupNode> children;
}
